package com.qj.daibei.controller;

import com.qj.daibei.service.GetValidation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * author zyc
 * Created on 2021/9/25 8:49
 */
@Controller
public class ValidationController {
    @Autowired
    GetValidation getValidation;

    @RequestMapping("/getvalidation")
    @ResponseBody
    public String get(String tel){
        String validation = getValidation.getValidation(tel);
        System.out.println(validation);
        return validation;
    }
}
